Personal tools

Lua/Shared/Functions/SetUnicode

From JC2-MP Documentation

< Lua‎ | Shared
Jump to: navigation, search

Returns    none
Prototype    SetUnicode(boolean enabled)
Description    No description


Used to toggle support for UTF-8 in the standard library. Defaults to on.

The primary use is when an external library (like msgpack) uses strings as arrays of bytes, which can break things. In these cases, you probably want to turn it off, call the external library function, then turn it back on.